
	<!--{include /service/service_head}-->
	<style>
body {
	text-align:center;
	margin:0px;
}

#service_staff_content {
	position: absolute;
	z-index: auto;
	height: auto;
	width: 1000px;
	left:0px;
	top:80px;

}
#service_staff_menu {
	width:200px
	height:auto;
	padding-left:20px;
	text-align:left;

	
}
#service_staff_top {
	float:left;
	padding-left:20px;
	width:960px;
	height:auto;
	margin-top:10px;

	
	
}

#service_staff_content #service_staff_top table tr td {
	font-family: "ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	font-size: 14px;
	text-align: center;
}
</style>
	<div id="service_staff_content">
    <div id="service_staff_menu">
    <ul >
    ${staffmanage_backend($oauthMap)}
    </ul>
    </div>
    <div id="service_staff_top">
	<form action="/service/staffManage.php" id="indexform" method="get">
		<font size="-1">店舗：</font>
		  <select name="shop_id" class="f-city">
			<option value="0">選択してください</option>
			${Utility::Option(Utility::OptionArray($shopList, 'id', 'shop_name'), $defaultShopId)}
		</select>
	</form>
		<table width="960"  border="1" cellpadding="3" cellspacing="0">
		<tr>
			<td >社員番号</td>
			<td >姓</td>
			<td >名</td>
			<td >性別</td>
			<td >電話番号</td>
			<td >通勤先</td>
			<td >スキル</td>
			<td >給料</td>
			<td ></td>
		</tr>
		<!--{loop $staffList $index $one}-->
		<tr>
			<td><a href="/service/staffManageEdit.php?id={$one['id']}">{$one['id']}</a></td>
			<td><font size="2">{$one['family_name']}</font></td>
			<td><font size="2">{$one['personal_name']}</font></td>
			<!--{if $one['sex']==0}-->
			<td><font size="2">女性</font></td>
			<!--{else}-->
			<td><font size="2">男性</font></td>
			<!--{/if}-->
			<td><font size="2">{$one['tel_no']}</font></td>
			<!--{if $one['shop_id']==0}-->
			<td><font size="2">所属店舗なし</font></td>
			<!--{else}-->
			<td><font size="2">{$shopIdList[$one['shop_id']]}</font></td>
			<!--{/if}-->
			<td>
				<!--{loop $staffSkill[$one['id']] $index1 $one1}-->
					<!--{if $index1 != 0 }-->
						,
					<!--{/if}-->
					<font size="2">{$serviceIdList[$one1['service_id']]}</font>

				<!--{/loop}-->
			</td>
			<td><font size="2">
			<!--{if $one['salary_type'] < 1}-->
			時給：
			<!--{elseif $one['salary_type'] == 1}-->
			月給：
			<!--{/if}-->
			${number_format($one['salary'])}円
			</font></td>
			<td><font size="2"><a href="/service/staffManage.php?id={$one['id']}&action=del" 
					onclick="return confirm('本当に削除しますか？')" 
					style="text-decoration: none;">削除</a></font></td>
		</tr>
		<!--{/loop}-->
		</table>
        </div>    
    </div>	
</body>
<script type="text/javascript"> 
	jQuery(function(){
		$("select[name='shop_id']").bind("change", function(){
			
			$("#indexform").submit();
		});
	});
</script> 
</html> 